// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 引入elementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 引入axios
import axios from 'axios'
// 设置跨域访问路径
const ax=axios.create({
  baseURL:"http://localhost:8888/",
  // 将cookie信息传输到后台
  withCredentials:true
});
// 使用elementUI
Vue.use(ElementUI);
Vue.prototype.$axios=ax;
Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
